﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using MahApps.Metro.Controls;
using GestorDocument.ViewModel.AsuntoTurno;

namespace GestorDocument.UI.AsuntoTurno
{
    /// <summary>
    /// Lógica de interacción para AddDocDGView.xaml
    /// </summary>
    public partial class AddDocDGView : MetroWindow
    {
        public AddDocDGView()
        {
            InitializeComponent();
        }

        private TrancingAsuntoViewModel GetViewModel()
        {
            return this.DataContext as TrancingAsuntoViewModel;
        }

        private void btnAgregarDocumentos_Click(object sender, RoutedEventArgs e)
        {

            AddDocumentosView addDocumento = new AddDocumentosView();
            addDocumento.GetAddDocumento(GetViewModel());
            addDocumento.ShowDialog();
        }

        private void btnAtneder_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
        }

        private void btnCerrar_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
        }
    }
}
